.class Lcom/youdao/note/task/SyncManager$1;
.super Ljava/util/TimerTask;
.source "SyncManager.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/youdao/note/task/SyncManager;->resetTime(I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field private loop:Z

.field final synthetic this$0:Lcom/youdao/note/task/SyncManager;


# direct methods
.method constructor <init>(Lcom/youdao/note/task/SyncManager;)V
    .locals 1
    .parameter

    .prologue
    .line 58
    iput-object p1, p0, Lcom/youdao/note/task/SyncManager$1;->this$0:Lcom/youdao/note/task/SyncManager;

    invoke-direct {p0}, Ljava/util/TimerTask;-><init>()V

    .line 60
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/youdao/note/task/SyncManager$1;->loop:Z

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 63
    iget-boolean v1, p0, Lcom/youdao/note/task/SyncManager$1;->loop:Z

    if-nez v1, :cond_0

    .line 64
    invoke-static {}, Landroid/os/Looper;->prepare()V

    .line 65
    iput-boolean v2, p0, Lcom/youdao/note/task/SyncManager$1;->loop:Z

    .line 68
    :cond_0
    :try_start_0
    iget-object v1, p0, Lcom/youdao/note/task/SyncManager$1;->this$0:Lcom/youdao/note/task/SyncManager;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/youdao/note/task/SyncManager;->startSync(Z)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 73
    :goto_0
    return-void

    .line 69
    :catch_0
    move-exception v0

    .line 70
    .local v0, e:Ljava/lang/Exception;
    const-string v1, "Failed to sync"

    invoke-static {p0, v1, v0}, Lcom/youdao/note/utils/L;->e(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0
.end method
